package world.player;

import java.util.Observable;
import java.util.Observer;

import utility.Color;
import utility.Point;
import world.gameMenager.GameManager;


public abstract class Player  extends Observable implements Observer{
	/**
	 * @uml.property  name="color"
	 */
	protected Color color;
	protected GameManager gameManager;

	public Player(Color color) {
		super();
		this.color = color;
	}
	
	public void setGameManager(GameManager gm) {
		gameManager=gm;
	}

	
	/**
	 * Getter of the property <tt>color</tt>
	 * @return  Returns the color.
	 * @uml.property  name="color"
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * Setter of the property <tt>color</tt>
	 * @param color  The color to set.
	 * @uml.property  name="color"
	 */
	public void setColor(Color color) {
		this.color = color;
	}
	
	public abstract void move(Point from , Point to);


}
